﻿<wpfc:HostControl x:Class="Sobiens.Connectors.WPF.Controls.SimpleSearchFiltersPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:wpfc="clr-namespace:Sobiens.Connectors.WPF.Controls"
             xmlns:ExtendedGridControl="clr-namespace:Sobiens.WPF.Controls.ExtendedGridControl;assembly=Sobiens.WPF.Controls"
             xmlns:ExtendedColumn="clr-namespace:Sobiens.WPF.Controls.ExtendedColumn;assembly=Sobiens.WPF.Controls" mc:Ignorable="d" 
             xmlns:my1="clr-namespace:Sobiens.Connectors.WPF.Controls"
             xmlns:my2="clr-namespace:Sobiens.WPF.Controls.UserControls;assembly=Sobiens.WPF.Controls" 
             xmlns:jas="clr-namespace:WPF.JoshSmith.ServiceProviders.UI"
             d:DesignHeight="54" d:DesignWidth="372" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="5,0,0,0" VerticalContentAlignment="Stretch" BorderBrush="{x:Null}" Background="{x:Null}">
    <UserControl.Resources>

        <Style x:Key="ItemContStyle" TargetType="ListViewItem">
            <Style.Resources>
                <LinearGradientBrush x:Key="MouseOverBrush" StartPoint="0.5, 0" EndPoint="0.5, 1">
                    <GradientStop Color="#110000ff" Offset="0" />
                    <GradientStop Color="#330000ff" Offset="0.4" />
                    <GradientStop Color="#440000ff" Offset="0.6" />
                    <GradientStop Color="#220000ff" Offset="0.9" />
                    <GradientStop Color="#110000ff" Offset="1" />
                </LinearGradientBrush>
            </Style.Resources>
            <Style.Triggers>
                <Trigger Property="jas:ListViewItemDragState.IsBeingDragged" Value="True">
                    <Setter Property="FontWeight" Value="DemiBold" />
                </Trigger>
                <Trigger Property="jas:ListViewItemDragState.IsUnderDragCursor" Value="True">
                    <Setter Property="Background" Value="{StaticResource MouseOverBrush}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <DockPanel x:Name="rootDockPanel" ClipToBounds="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ForceCursor="True" LastChildFill="True" Margin="0,0,0,0">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="25"/>
                <RowDefinition Height="25"/>
                <RowDefinition Height="100*"/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0" DockPanel.Dock="Top" Name="ListViewActionPanel" Orientation="Horizontal" Height="25" VerticalAlignment="Top" HorizontalAlignment="Right">
                <my1:SearchTextBox Height="18" x:Name="searchTextBox1" SearchMode="Delayed" TextChanged="searchTextBox1_TextChanged" Margin="2,5,0,0" VerticalAlignment="Top" HorizontalContentAlignment="Right" Width="353" HorizontalAlignment="Right" />
            </StackPanel>
            <StackPanel Grid.Row="1" DockPanel.Dock="Top" Name="ListViewNavPanel" Orientation="Horizontal" Height="22" Width="350" VerticalAlignment="Top" HorizontalAlignment="Right">
                <ComboBox Height="20" Name="ViewsComboBox" Width="200" SelectionChanged="ViewsComboBox_SelectionChanged" Margin="2,2,0,0" />
                <my2:PagingControl Height="18" Name="pagingControl1" Margin="40,0,0,0" Width="85" NextButtonClick="pagingControl1_NextButtonClick" PreviousButtonClick="pagingControl1_PreviousButtonClick" />
            </StackPanel>
        </Grid>
    </DockPanel>
</wpfc:HostControl>
